package com.webapps.tvprogram.data.local;

import java.util.ArrayList;
import java.util.Collections;

import android.graphics.Bitmap;

public class Program {
    private String name;
    private Bitmap icon;
    private ArrayList<ProgramItem> programItems;

    public Program(String name, Bitmap icon) {
        this.icon = icon;
        this.name = name;
        programItems = new ArrayList<ProgramItem>();
    }

    public void addProgramItem(ProgramItem item) {
        programItems.add(item);
    }

    public void sortProgramItems() {
        Collections.sort(programItems);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Bitmap getIcon() {
        return icon;
    }

    public void setIcon(Bitmap icon) {
        this.icon = icon;
    }

    public ArrayList<ProgramItem> getProgramItems() {
        return programItems;
    }

}
